home *** CD-ROM | disk | FTP | other *** search
- Date: Fri, 29 Jul 94 23:24 CDT
- From: ekl@sdf.lonestar.org (Evan K. Langlois)
- To: gem-list@world.std.com
- Subject: Re: Gem List
- Precedence: bulk
-
- ========================================================================
- In GEM++, I use a linked list, and go to the trouble of maintaining the
- list to be in the same order as the windows. I'm still not sure how
- useful this is, since I could call wind_find(), then search an
- unordered list. Comments?
- ========================================================================
-
- Order of window handle, or order as in top window first, desktop last?
- I was planning on doing it that way because locking activity focus
- to the top window would be alot easier, and you would know what the
- second or third windows were instantly. I think its useful.
-
- ========================================================================
- I also never hold onto a window handle if the window is not open.
- This means keeping my own copies of the window sizes, but again,
- that hasn't been a problem. Good for older TOSes. Comments? (Hey,
- maybe everyone does these things - I've not looked at the details of
- many libraries).
- ========================================================================
-
- There are a couple, very few, instances when I would hold on to the
- window handle. Currently, my plan is to call wind_create() in the
- alloc "factory" method (constructor), and wind_delete() would be
- called in the free method (as well as wind_close()). And wind_open()
- would be called in the init method. Since the "new" factory method
- calls alloc and init, you get a new open window, and you can split
- stuff up if needed. I think I may also have a Hide and UnHide method.
- Hide would close the window (maybe iconify, or maybe create an icon
- and store it elsewhere) and UnHide would re-open the window. Then you
- can send "Hide" to all your windows to clean up, or maybe send Hide to
- all but the top window.
-
- So, Yes, a closed window handle could exist doing it this way, but
- it probably won't.
-
-